home *** CD-ROM | disk | FTP | other *** search
/ Laboratorio Interattivo Deagostini / laboratorio interattivo deagostini.bin / swf / 188.swf / scripts / frame_1 / PlaceObject2_43_10 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Text File  |  2003-01-05  |  1KB  |  41 lines

  1. onClipEvent(enterFrame){
  2.    function verifica()
  3.    {
  4.       punteggio = 0;
  5.       i = 0;
  6.       lRisultati = new Array(lista.length);
  7.       i == 0;
  8.       while(lista.length - 1 >= i)
  9.       {
  10.          nomeClip = lista[i][0];
  11.          sceltaFatta = _parent.mask.esercizio[nomeClip].scelta;
  12.          trace("Scelta effettuata " + _parent.mask.esercizio[nomeClip].scelta);
  13.          if(sceltaFatta == lista[i][1])
  14.          {
  15.             punteggio += lista[i][2];
  16.             _parent.mask.esercizio[nomeClip].responso.gotoAndStop("Giusto");
  17.             var GiustoSbagliato = 1;
  18.          }
  19.          else
  20.          {
  21.             _parent.mask.esercizio[nomeClip].responso.gotoAndStop("Sbagliato");
  22.             var GiustoSbagliato = 0;
  23.          }
  24.          lRisultati[i] = "[" + (i + 1) + "," + sceltaFatta + "," + lista[i][1] + "," + GiustoSbagliato + "]";
  25.          i += 1;
  26.       }
  27.       _root.risultato = punteggio / TotPunteggio * 10;
  28.       getURL("Finito:[" + lRisultati + "]","");
  29.       _root.TempoScaduto = 0;
  30.       _root.AvviaVerifica = 0;
  31.    }
  32.    if(_root.TempoScaduto == "1")
  33.    {
  34.       Verifica();
  35.    }
  36.    if(_root.AvviaVerifica == "1")
  37.    {
  38.       Verifica();
  39.    }
  40. }
  41.